#ifndef _STM8_UART_H_
#define _STM8_UART_H_

#include "typedef.h"






#define Uart1_Open()	UART1_CR2=0x2c      
#define Uart1_Close()	{while((UART1_SR&0x80)==0x00);UART1_CR2=0x00;}


void Uart1_Init();
void Uart1_SendByte(u8 c);
void Uart1_Send(u8 *buff,u8 Length);
void Uart1_SetBaud(u32 baud);

#endif



